package yf.mall.service;

import yf.mall.entity.CommentEntity;
import yf.mall.vo.CommentVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 评论Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Sep 15 10:27:09 CST 2020
 */
public interface CommentService extends BaseService<CommentEntity> {

    /************自动生成**************/
    List<CommentVo> findVo(CommentVo vo);

        CommentVo getVo(Long id);

     int updateVo(CommentVo vo);

       int saveVo(CommentVo vo);

    void downLoad(HttpServletResponse response, List<CommentVo> list);

    void comment(Long userId,Long goodsId,Long itemId,String content);

    /***********BACK***********/




    /***********API***********/
    List<CommentEntity> findByGoodsId(Long goodsId);

}
